<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnShopIdToGuanyuanSyncShopList extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('guanyuan_sync_shop_list', function (Blueprint $table) {
            $table->unsignedInteger('shopId')->after('code')->default(0)->comment('门店ID');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('guanyuan_sync_shop_list', function (Blueprint $table) {
            $table->dropColumn('shopId');
        });
    }
}
